package com.wutianyi.slf4j;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.profiler.Profiler;

public class HelloWorld
{
    public static void main(String[] args)
    {
        Logger logger = LoggerFactory.getLogger(HelloWorld.class);
        logger.info("Hello World");
        Profiler profiler = new Profiler("Hello World");
        profiler.start("A");
        for (int i = 0; i < 1000000; i++)
        {
        }
        profiler.start("B");
        profiler.stop().print();
    }
}
